package com.example.demo.models;

import com.example.demo.models.base.BaseEntity;
import gaarason.database.annotation.Column;
import gaarason.database.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Repository;

/**
 * @author lucifer
 * @since 2024-01-30-11:37
 */

@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(name = "feedback")
public class Feedback extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * auto generator start
     **/
    @Column(name = "user_id", comment = "用户id")
    private String userId;

    @Column(name = "activity", comment = "活动")
    private String activity;

    @Column(name = "rate", comment = "活动评价")
    private Integer rate;

    @Column(name = "content", comment = "反馈内容")
    private String content;

    @Column(name = "status", comment = "反馈状态")
    private String status;

    /**
     * auto generator end
     **/
    @Repository
    public static class Model extends BaseModel<Feedback, Long> {
        @Override
        protected boolean softDeleting() {
            return true;
        }
    }
}
